package com.ogilvy.cms.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.ogilvy.cms.util.ServiceDispatcher;
import com.ogilvy.frame.action.BaseAction;

/**
 * 菜单树
 * @author cdy
 *
 */
@Scope("prototype")
@Controller("cms.action.CmsLeftTreeAction")
public class CmsLeftTreeAction extends BaseAction{
	@Autowired
	protected ServiceDispatcher serviceDispatcher;
	
	public String execute(){
		this.renderJson(serviceDispatcher.getCmsLeftTreeService().leftTreeJson());
		return null;
	}
	
}
